<script setup>
import store from '@/utils/store.js'
import MetaTable from "@/components/MetaTable.vue"
import {extCols} from "@/utils/tool.js"

const data = store.templateLanguageData
const exts = store.languages

const cols = [
  {type: 'input'  , label: '名称', prop: 'name'   , width: '100', input: {disabled: true}},
  {type: 'input'  , label: '代码', prop: 'code'   , width: '100', input: {disabled: true}},
  {type: 'input'  , label: '说明', prop: 'info'},
  ...extCols(exts, 'code'),
]
</script>

<template>
  <meta-table :data :cols show-code/>
</template>